#pragma once
#include "Object.h"
#include <list>
using namespace std;
class Grenade;
class Box;
class Sprite;
class DefenseCannon : public Object
{
	Sprite* _cannon;
	Sprite* _explode;	
	int _v;
	Box* _boxBullet;
public:
	DefenseCannon(Box* box);
	~DefenseCannon(void);
	void init(int spriteIndex);
	void update();
	void render();
	void shoot();
	void setIndexOfSprite(int index);	
	virtual Box* getCollisionBox();
};